$(function () {
  // 点击登录执行登录
  $('.submit-btn').click(function () {
    let username = $('.username').val()
    let userPassword = $('.password').val()
    $.ajax({
      url: 'http://146.56.230.35:3007/users/login',
      data: { username, userPassword },
      type: 'POST',
      success(res) {
        console.log(res)
      },
    })
  })
})
